#ifndef CellUI_H
#define CellUI_H

#include <QWidget>

struct CellParam {
    int iCell;
    std::string sName;
    std::string sId;
    std::string sBarcode;
    int iDianya;
    int iMaikuan;
    int iCishu;
    int iJiange;
    float fLiusu;
    int iYaodong;
};

namespace Ui {
class CellUI;
}

class CellUI : public QWidget
{
    Q_OBJECT

public:
    explicit CellUI(QWidget *parent = 0);
    ~CellUI();
    static bool bParamExist(QString cellStr);

private slots:
    void updateTime();
    void getShow();

    void on_btnRet_clicked();

    void on_btnSave_clicked();

    void on_btnOk_clicked();

    void on_btnCus_clicked();

    void on_tCell_clicked();

    void on_nkCell_clicked();

    void on_bCell_clicked();

    void on_dcCell_clicked();

    void on_cikCel_clicked();

    void on_cusCell_clicked();

    void on_subOne_clicked();

    void on_subTwo_clicked();

    void on_subThree_clicked();

signals:
    void retMain();
    void onCustom();
    void onDetail(int iType);
    void paramSet(int iType);

private:
    Ui::CellUI *ui;
    int iCellType;
    static QList<QStringList> qData;
    void loadParameters(QString qstrCell);
    void clearParams();
};

#endif // CellUI_H
